import request from "./request"

// 举报
export function postReport(data){
    return request({
        url: '/echo/report/post',
        method: 'post',
        data,
        headers: {
            "Authorization":localStorage.getItem("Authorization")
        }
    })
}

export function listReport(data){
    return request({
        url: '/echo/report/list',
        method: 'post',
        data,
        headers: {
            "Authorization":localStorage.getItem("Authorization")
        }
    })
}

export function deleteReport(reportId){
    return request({
        url: '/echo/report/delete/'+reportId,
        method: 'get',
        headers: {
            "Authorization":localStorage.getItem("Authorization")
        }
    })
}